#ifndef LOGINWINDOW_H
#define LOGINWINDOW_H

#include <QMainWindow>
#include <QLineEdit>

namespace Ui {
class loginWindow;
}

class loginWindow : public QMainWindow
{
    Q_OBJECT    // 用于支持信号与槽的

public:
    loginWindow(QWidget *parent = nullptr);
    ~loginWindow();

    QString getAccount();

// 自定义信号
signals:
   void loginsignal(QString);

private slots:
    void login();
    void register_btn();
    void passwordVisibility_pressed();
    void passwordVisibility_released();
    void reBackMainWindow();
    void fun1();
    void fun2();

private:
    Ui::loginWindow *ui;
    QWidget *parent;
    QLineEdit *accountLineEdit;
    QLineEdit *password;
    QString account;
    int count;
};

#endif // LOGINWINDOW_H
